import Layout from "/@/layout/index.vue";

const expertRouter = {
  path: "/expert",
  name: "expert",
  redirect: "/expert/manage",
  component: Layout,
  meta: {
    icon: "el-icon-folder",
    title: "专家管理",
    showLink: true,
    savedPosition: true,
    rank: 4
  },
  children: [
    {
      path: "/expert/manage",
      name: "expertManage",
      component: () => import("/@/views/expert/manage/index.vue"),
      meta: {
        title: "专家管理",
        showLink: true,
        savedPosition: true
      }
    },
    {
      path: "/expert/detail",
      name: "expertDetail",
      component: () => import("/@/views/expert/manage/index.vue"),
      meta: {
        title: "详情",
        showLink: false,
        savedPosition: true,
        activeMenu: "/expert/manage"
      }
    }
  ]
};

export default expertRouter;
